package com.tpc.jginterface.task;

import com.tpc.jginterface.service.SaleOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SaleOutTask {

    @Autowired
    private SaleOutService saleOutService;

    @Scheduled(cron = "${UPLOAD.SALEOUT}")
    public void uploadSaleOut(){
        saleOutService.uploadSaleOut();
    }
}
